﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBase.MyProject.Domain.wdx
{
    /// <summary>
    /// 居民就诊记录
    /// </summary>
    [SugarTable("MedicalRecords")]
    public class MedicalRecords:Audit
    {
        /// <summary>
        /// 居民就诊记录表唯一标识
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int MedicalRecords_Id { get; set; }

        /// <summary>
        /// 患者id【外键】
        /// </summary>
        public int Patient_Id { get; set; }

        /// <summary>
        /// 就诊类型 0:全部 1：住院  2：门诊
        /// </summary>
        public int Medical_Type { get; set; } = 2;

        /// <summary>
        /// 就诊机构
        /// </summary>
        public string? Medical_Organ { get; set; }

        /// <summary>
        /// 诊断
        /// </summary>
        public string? Medical_Diagnose {  get; set; }

        /// <summary>
        /// 就诊医生
        /// </summary>
        public string? Dockor {  get; set; }

        /// <summary>
        /// 就诊开始时间
        /// </summary>
        public DateTime Medical_StartTime { get; set; }

        /// <summary>
        /// 就诊结束时间
        /// </summary>
        public DateTime Medical_EndTime { get; set; }
    }
}
